/*
 * To change this license header, choose License Headers in Project Properties.
 * To change this template file, choose Tools | Templates
 * and open the template in the editor.
 */

package Calculadora;

/**
 *
 * @author Jorge
 */
public class Simbolo extends Numero{

    private String ID;
    
    public Simbolo(Number num, String ID) {
        super(num);
        this.ID = ID;
    }
    
    public Simbolo(String ID) {
        super(0);
        this.ID = ID;
    }
    
    public String getID(){
        return ID;
    }
    
    @Override
    public String toString(){
        return "(" + ID + " = " + num.toString() + ")";
    }
    
}
